#include <iostream>
#include <string>
using namespace std;
int main()
{
	string str[20] = {""};
	int cnt = 0;
	while(cin >> str[cnt++])
	{
		if(str[cnt - 1] == "." || cnt > 15)
			break;
	}
	if(cnt <= 2)
		cout << "Momo... No one is for you ...";
	else if(cnt >= 15) 
		cout << str[1] << " and " << str[13] <<" are inviting you to dinner...";
	else
		cout << str[1] << " is the only one for you...";
	return 0;
}